home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / query_limits < prev    next >
Text File  |  2001-04-20  |  1KB  |  38 lines

  1. PRELIMINARY
  2. SYNOPSIS
  3.  
  4.         #include <rtlimits.h>
  5.  
  6.         int * query_limits()
  7.         int * query_limits(int default)
  8.  
  9. DESCRIPTION
  10.         Return an array with the current runtime limits, resp. if <defaults>
  11.         is true, the default runtime limits. The entries in the returned
  12.         array are:
  13.  
  14.           int[LIMIT_EVAL]:    the max number of eval costs
  15.           int[LIMIT_ARRAY]:   the max number of array entries
  16.           int[LIMIT_MAPPING]: the max number of mapping entries
  17.           int[LIMIT_BYTE]:    the max number of bytes handled with
  18.                                 one read_bytes()/write_bytes() call.
  19.           int[LIMIT_FILE]:    the max number of bytes handled with
  20.                                 one read_file()/write_file() call.
  21.           int[LIMIT_CALLOUTS]: the number of callouts at one time.
  22.        
  23.         A limit of '0' aka LIMIT_UNLIMITED means 'no limit'.
  24.  
  25. EXAMPLES
  26.         query_limits()
  27.           --> returns the current runtime limits
  28.  
  29.         query_limits(1)
  30.           --> returns the default runtime limits
  31.  
  32. HISTORY
  33.         Introduced in LDMud 3.2.7.
  34.         LIMIT_CALLOUTS introduced in LDMud 3.2.9.
  35.  
  36. SEE ALSO
  37.         limited(E), set_limits(E)
  38.